﻿namespace WorkOrder.Model
{
    public class Model_Table_Work_order
    {
        private string _order_id;
        private string _order_number;
        private string _group_code;
        private string _product_id;
        private string _order_type_id;
        private string _town_id;
        private string _title;
        private string _order_content;
        private string _entry_person;
        private bool _is_back;
        private string _checkintime;
        private string _remark;
        private string _area_id;
        private string _finishtime;
        private string _access_mode;
        private string _analysis_time;
        private string _audit_time;
        private string _config_time;
        private string _confirm_time;
        private string _back_reason;
        private string _back_reason_comment;
        private string _task_time;
        private string _customer_code;
        private string _clustering_client;
        private string _customer_name;
        private string _task_initiator;
        private string _task_dept;

        /// <summary>
        /// 签收时间
        /// </summary>
        public string CheckInTime { set { _checkintime = value; } get { return _checkintime; } }

        /// <summary>
        /// 集团编码
        /// </summary>
        public string GroupCode { set { _group_code = value; } get { return _group_code; } }
        
        /// <summary>
        /// 调整内容
        /// </summary>
        public string OrderContent { set { _order_content = value; } get { return _order_content; } }

        /// <summary>
        /// 工单录入人
        /// </summary>
        public string EntryPerson { set { _entry_person = value; } get { return _entry_person; } }
        
        /// <summary>
        /// 是否退单
        /// </summary>
        public bool IsBack { set { _is_back = value; } get { return _is_back; } }

        /// <summary>
        /// 工单编号
        /// </summary>
        public string Order_number
        { set { _order_number = value; } get { return _order_number; } }

        /// <summary>
        /// 工单ID
        /// </summary>
        public string Order_id
        {
            set { _order_id = value; }
            get { return _order_id; }
        }

        /// <summary>
        /// 产品编号
        /// </summary>
        public string Product_id
        {
            set { _product_id = value; }
            get { return _product_id; }
        }

        /// <summary>
        /// 工单类别编号
        /// </summary>
        public string Order_type_id
        {
            set { _order_type_id = value; }
            get { return _order_type_id; }
        }

        /// <summary>
        /// 镇区编号
        /// </summary>
        public string Town_id
        {
            set { _town_id = value; }
            get { return _town_id; }
        }

        /// <summary>
        /// 工单标题
        /// </summary>
        public string Title
        {
            set { _title = value; }
            get { return _title; }
        }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark
        {
            set { _remark = value; }
            get { return _remark; }
        }

        /// <summary>
        /// 区域
        /// </summary>
        public string Area_id { set { _area_id = value; } get { return _area_id; } }

        public string FinishTime { set { _finishtime = value; } get { return _finishtime; } }
        public string AccessMode { set { _access_mode = value; } get { return _access_mode; } }
        public string Confirm_time { set { _confirm_time = value; } get { return _confirm_time; } }
        public string Config_time { set { _config_time = value; } get { return _config_time; } }
        public string Audit_time { set { _audit_time = value; } get { return _audit_time; } }
        public string Analysis_time { set { _analysis_time = value; } get { return _analysis_time; } }
        public string BackReason { set { _back_reason = value; } get { return _back_reason; } }
        public string BackReasonComment { set { _back_reason_comment = value; } get { return _back_reason_comment; } }
        public string ClusteringClient { set { _clustering_client = value; } get { return _clustering_client; } }
        public string TaskTime { set { _task_time = value; } get { return _task_time; } }
        public string CustomerName { set { _customer_name = value; } get { return _customer_name; } }
        public string TaskInitiator { set { _task_initiator = value; } get { return _task_initiator; } }
        public string TaskDept { set { _task_dept = value; } get { return _task_dept; } }

        /// <summary>
        /// 用户编码
        /// </summary>
        public string CustomerCode
        {
            get { return _customer_code; }
            set { _customer_code = value; }
        }

        public Model_Table_Work_order() { }
        public Model_Table_Work_order(string order_id, string order_number, string group_code, 
            bool isback, string product_id, string order_type_id, string town_id, string title,
            string order_content, string entryperson, string remark, string area_id, string checkintime,
            string accessMode, string analysis_time, string audit_time, string config_time, string confirm_time,string taskTime,string customer_code)
        {
            _order_id = order_id;
            _order_number = order_number;
            _product_id = product_id;
            _order_type_id = order_type_id;
            _town_id = town_id;
            _title = title;
            _remark = remark;
            _group_code=group_code;
            _is_back = isback;
            _order_content = order_content;
            _entry_person = entryperson;
            _area_id = area_id;
            _checkintime = checkintime;
            _access_mode = accessMode;
            _confirm_time = confirm_time;
            _config_time = config_time;
            _analysis_time = analysis_time;
            _audit_time = audit_time;
            _task_time = taskTime;
            _customer_code = customer_code;
        }
    }
}
